Skip to content

Target #iced container by default on Wasm#2342

Merged
hecrj merged 2 commits intomasterfrom
default-wasm-canvas-target
Mar 19, 2024
Merged

Target #iced container by default on Wasm#2342
hecrj merged 2 commits intomasterfrom
default-wasm-canvas-target

Conversation

@hecrj
Copy link
Member

@hecrj hecrj commented Mar 19, 2024

This PR changes the default behavior when running an iced application on Wasm.

Instead of always appending to the body, the runtime will look for an element with the #iced identifier and replace it with the application canvas.

This is convenient for initializing an iced application with default settings without having to establish communication between Javascript and Wasm.

Additionally, this PR updates our winit fork; which includes an important bugfix for initializing multiple applications in the same web document.

@hecrj hecrj added bug Something isn't working shell web change labels Mar 19, 2024
@hecrj hecrj added this to the 0.13 milestone Mar 19, 2024
@hecrj hecrj merged commit af6bc46 into master Mar 19, 2024
@hecrj hecrj deleted the default-wasm-canvas-target branch March 19, 2024 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working change shell web

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments